window.onload=function ()
{
    var vue=new Vue({
        el:"#app",
        data:{
            goodsList:[],
            searchGoods:{auditStatus:''},
            status:['未审核','审核中','审核未通过','已关闭'],
            pages:0,
            current:1
        },
        methods:{
            searchGoodsList:function (current)
            {
                axios.get("/goods/findByPage?page="+current,{params:this.searchGoods}).then(function (response)
                {
                    vue.goodsList=response.data.rows;
                    vue.pages=response.data.pages;
                    vue.current=current;
                })

            }

        },

        created:function ()
        {
            this.searchGoodsList(1);
        }
    })

};